import { GLOBAL } from '../../../config/global';
import { style } from '../../../theme/style';
const scale = GLOBAL.SCALE;

const blueBtn = {
	paddingRight: 14 * scale,
	paddingLeft: 14 * scale,
	paddingTop: 6 * scale,
	paddingBottom: 6 * scale,
	fontSize: 12 * scale,
	opacity: 1,
	color: '#ffffff',
	borderWidth: 1 * scale,
	borderStyle: 'solid',
	borderColor: style.color.themeColor,
	borderRadius: 15 * scale,
	backgroundColor: style.color.themeColor,
	overflow: 'hidden'
}

const redBtn = {
	paddingRight: 14 * scale,
	paddingLeft: 14 * scale,
	paddingTop: 6 * scale,
	paddingBottom: 6 * scale,
	fontSize: 12 * scale,
	opacity: 1,
	color: '#ffffff',
	borderWidth: 1 * scale,
	borderStyle: 'solid',
	borderColor: style.color.lightRed,
	borderRadius: 15 * scale,
	backgroundColor: style.color.lightRed,
	overflow: 'hidden'
}

const borderBtn = {
	fontSize: 12 * scale,
	color: style.color.themeColor,
	paddingRight: 14 * scale,
	paddingLeft: 14 * scale,
	paddingTop: 6 * scale,
	paddingBottom: 6 * scale,
	borderWidth: 1 * scale,
	borderStyle: 'solid',
	borderColor: style.color.themeColor,
	borderRadius: 15 * scale
}

export const OfferCommon = {
	OFFER_STATUS_LIST: [  //状态
		{
			dictName: '全部状态',
			dictKey: ''
		}, {
			dictName: '草稿', //提交 删除 
			dictKey: 1
		}, , {
			dictName: '审批中',//撤销本轮
			dictKey: 2
		}, {
			dictName: '已驳回',//重新提交 删除
			dictKey: 3
		}, {
			dictName: '待处理',//撤销本轮
			dictKey: 4
		}, {
			dictName: '上架中',//--
			dictKey: 5
		}, {
			dictName: '已上架',//查看报盘
			dictKey: 6
		}, {
			dictName: '已下架',//再来一轮 查看报盘
			dictKey: 7
		}
	],
	OFFER_TYPE_LIST: [  //类型
		{
			dictName: '全部类型',
			dictKey: ''
		}, {
			dictName: '即买即中',
			dictKey: 'MZ'
		}, {
			dictName: '招标',
			dictKey: 'Z'
		}, {
			dictName: '多轮',
			dictKey: 'M'
		}, {
			dictName: '竞拍',
			dictKey: 'P'
		}, {
			dictName: '需求判断',
			dictKey: 'DD'
		}
	],
	Y_OR_N: {
		'1': '是',
		'0': '否',
		'Y': '是',
		'N': '否',
	},
	MODEL_ACTION_BUTTONS: {
		'1': [
			{ type: 'SUBMIT', text: '编辑', btnStyle: blueBtn }, //跳编辑
			{ type: 'DELETE', text: '删除', btnStyle: redBtn }
		],
		'2': [{ type: 'CANCEL', text: '撤销', btnStyle: redBtn }],
		'3': [
			{ type: 'RESUBMIT', text: '重新提交', btnStyle: borderBtn },
			{ type: 'DELETE', text: '删除', btnStyle: redBtn }
		], //跳编辑
		'4': [{ type: 'CANCEL', text: '撤销', btnStyle: redBtn }],
		'5': null,
		'6': [{ type: 'CHECK', text: '查看报盘', btnStyle: blueBtn }],
		'7': [{ type: 'CHECK', text: '查看报盘', btnStyle: blueBtn }],
		'6_ADD_Z': null,
		'7_ADD_M': [
			{ type: 'READD', text: '再来一轮', btnStyle: borderBtn }, //跳编辑
			{ type: 'CHECK', text: '查看报盘', btnStyle: blueBtn }
		]
	}
}